package com.eedi.framework.user.enums;


import com.eedi.framework.common.exception.ErrorCode;
import com.eedi.sys.enums.SysErrorCode;
import com.eedi.sys.enums.SysErrorCodeType;

/**
 * Member 错误码枚举类
 * <p>
 * member 系统，使用 1-004-000-000 段
 */
public interface SysUserErrorCodeConstants {

    // ========== 用户相关  1-004-001-000 ============
    ErrorCode SYS_USER_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.USER,0, "用户不存在");
    ErrorCode SYS_USER_MOBILE_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.USER,1, "手机号未注册账号");
    ErrorCode SYS_USER_MOBILE_USED = new SysErrorCode(SysErrorCodeType.USER,2, "修改手机失败，该手机号({})已经被使用");
    ErrorCode SYS_USER_INFO_NULL= new SysErrorCode(SysErrorCodeType.USER,3, "未找到用户信息");
    ErrorCode SYS_USER_ROLE_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.USER,4, "用户无当前应用访问权限");
    ErrorCode SYS_ACCOUNT_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.USER,5, "账号不存在");
    ErrorCode SYS_USER_PASSWORD_FAILED = new SysErrorCode(SysErrorCodeType.USER,6, "用户密码校验失败");
    ErrorCode SYS_QUALIFICATION_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.USER,7, "医生资格证信息不存在");
    ErrorCode SYS_USER_ACCOUNT_OR_MOBILE_NULL = new SysErrorCode(SysErrorCodeType.USER,8, "账号和手机号均不能为空");

    ErrorCode SYS_USER_MOBILE_NO_CHANGE = new SysErrorCode(SysErrorCodeType.USER,9, "手机号未发生改变");

    ErrorCode SYS_USER_NEWPWD_CONFIRMPWD_NOT_EQUAL = new SysErrorCode(SysErrorCodeType.USER,10, "用户新密码与确认密码不一致");

    ErrorCode SYS_USER_BLACK_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.USER,12, "用户黑名单信息不存在");

    ErrorCode SYS_USER_BLACK_EXISTS = new SysErrorCode(SysErrorCodeType.USER,13, "用户黑名单信息已存在，无需重复添加");

    ErrorCode SYS__USER_ACCOUNT_NOT_MATCH = new SysErrorCode(SysErrorCodeType.USER,16, "用户账号信息不一致，请检查");
    ErrorCode SYS_USER_LOGIN_ID_EXISTS = new SysErrorCode(SysErrorCodeType.USER,17, "登录ID已被占用，请使用其他组合！");
    ErrorCode SYS_USER_MOBILE_EXISTS = new SysErrorCode(SysErrorCodeType.USER,18, "手机号已被占用，请用户使用手机找回密码！");

    // ========== 账号相关  1-004-002-000 ============
    ErrorCode SYS_USER_ACCOUNT_IS_DISABLE = new SysErrorCode(SysErrorCodeType.USER,19, "账号已停用");
    ErrorCode SYS_USER_ACCOUNT_IS_ENABLE = new SysErrorCode(SysErrorCodeType.USER,20, "账号已启用");
    // ========== 用户收件地址 1-004-004-000 ==========
    ErrorCode ADDRESS_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.USER,21, "用户收件地址不存在");


}
